//
//  ContentView.m
//  兼职页面
//
//  Created by kuiyuan liang on 2021/5/23.
//

#import "ContentView.h"
#import "CommonUtil.h"
#import "ResultView.h"
#import "MemberListView.h"

@interface ContentView()

@property (strong, nonatomic) ResultView * resultView;
@property (strong, nonatomic) MemberListView * listView;

@end


@implementation ContentView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        
        [self addSubview:self.resultView];
        [self addSubview:self.listView];
    }
    return self;
}


#pragma mark - lazy
    
-(ResultView *)resultView{
    if (!_resultView) {
        _resultView = [[ResultView alloc] initWithFrame:CGRectMake(0, 0, self.width, AD(180))];
    }
    return _resultView;
}


-(MemberListView *)listView{
    if (!_listView) {
        _listView = [[MemberListView alloc] initWithFrame:CGRectMake(0, _resultView.bottom, self.width, self.height-_resultView.height)];
    }
    return _listView;
}
    
    
@end
